(function () {
  let covers = document.getElementsByClassName('cover')
  for (const item of covers) {
    item.addEventListener('error', (e) => {
      item.parentElement.classList.add('cover-error')
    })
  }
})()